package org.jeecg.modules.friends.moments.service;

import org.jeecg.modules.friends.moments.dto.MomentsInfoDetailDTO;
import org.jeecg.modules.friends.moments.entity.Moments;
import org.jeecg.modules.friends.moments.param.LikeMomentsParam;
import org.jeecg.modules.friends.moments.param.MomentsPageRequest;
import org.jeecg.modules.friends.moments.param.PublishMomentsParam;
import org.jeecg.modules.friends.user.entity.User;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 动态信息表
 * @Author: jeecg-boot
 * @Date:   2024-05-15
 * @Version: V1.0
 */
public interface IMomentsService extends IService<Moments> {

    IPage<MomentsInfoDetailDTO> queryMomentsPage(MomentsPageRequest momentsPageRequest, User visitor);

    void publishMoments(PublishMomentsParam param, Long userId);

    void deleteById(Long momentsId);

    void likeMoments(LikeMomentsParam param, Long id);

    void deleteByUserId(Long id);
}
